package com.zx.feign.fallBack;/**
 * Author:JasonZ
 * Data:2023/4/21
 */

import com.zx.common.ResponseCommon;
import com.zx.feign.SecuredAddressClient;
import com.zx.vo.AddressInfo;
import org.springframework.stereotype.Component;

/**
 * @program: ecommerce-parent
 *
 * @description:熔断之后返回值
 *
 * @author: JasonZ
 *
 * @create: 2023-04-21 10:41
 **/
@Component
public class AddressClientHystrix implements SecuredAddressClient {
    @Override
    public ResponseCommon<AddressInfo> getAddressInfoById(Long id) {
        return new ResponseCommon<>(-1,"fallBack");
    }
}
